エラー
$ NODE_ENV=production pnpm run build
> [email protected] build /home/[USER_NAME]/misskey
> pnpm build-pre && pnpm -r build && pnpm gulp
> [email protected] build-pre /home/[USER_NAME]/misskey
> node ./scripts/build-pre.js
Scope: 3 of 4 workspace projects
packages/backend build$ swc src -d built -D
└─ Done in 4.5s
packages/frontend build$ vite build
│ Aborted (core dumped)
└─ Failed in 52.2s at /home/[USER_NAME]/misskey/packages/frontend
packages/sw build$ node build.js
└─ Done in 3.2s
/home/[USER_NAME]/misskey/packages/frontend:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL frontend@ build: `vite build`
Exit status 134
ELIFECYCLE Command failed with exit code 1.
解決方法
https://github.com/misskey-dev/misskey/issues/9622
$ NODE_ENV=production NODE_OPTIONS=--max_old_space_size=3072 pnpm run build